/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.base.files;

import view.base.TabsPanel;

/**
 *
 * @author camil
 */
public class SaveFormulaPanel extends view.base.files.ChooseFilePanel {

    String text;
    TabsPanel frame = null;

    public SaveFormulaPanel(TabsPanel f) {
        super();
        frame = f;
        setButtonName("Save");
    }

    /**
     * load formula from file
     */
    @Override
    public void action() {
            text = frame.jEditorPane1.getText();
            ChooseFilePanel.write(text, file);
    }
}
